STEP 16: Now let's set up the loop that will count the goals in our kicks list.

  • In LOGIC, click on . Drag out Loop through List. Change the list name to range_list.
  • Click on . Drag out Get Count. Drop it INSIDE your loop. Change the name before the = to freq.
  • Change the list name in front of .count() to kicks. Change the argument in parentheses to value.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)